
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml"
	xmlns:og="http://opengraphprotocol.org/schema/">
<%@ taglib prefix="s" uri="/struts-tags"%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
	var plst = new Date().getTime();
	function check(a){
		//alert(a);
		var quantity=document.getElementById('quantity').value;
		var maxq=document.getElementById('maxq').value;
		//alert(maxq);
		//alert("AddToCart.action?item_id="+a+"&quantity="+quantity);
		if(quantity.length==0||Math.floor(quantity)!=quantity||quantity>maxq){
			alert("Quantity field should not be empty and it should be a number and it should not be more than available quantity");
			document.getElementById('quantity').focus();
			
		}
		
		else{
			window.location.href="AddToCart.action?item_id="+a+"&quantity="+quantity;
		}
		
	}
	
</script>
<title>hello..</title>


<link rel="stylesheet" type="text/css" href="css/bid2.css">
</head>
<body style="text-align: left" id="body">
<s:iterator value="arr">
	<div><%@ include file="wideheader.jsp"%></div>
	
		<br />
		<br />
		<br />
		<div></div>
		<div id="vi-container" class="vi-c_0">

			<table id="vi-tTbl" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td colspan="1" rowspan="1" id="vi-tTblC1" class="vi-tTblC1_0"><div>
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td class="ipics-cell-0"><div class="vi-ipic1">
											<span class="shig" id="freeShippingIcon"><span
												id="spclOffers"></span> </span>

											<div>
												<table border="0" cellpadding="0" cellspacing="0">
													<tr>
														<td class="vs_w-a"><div class="ict-w1" id="vv4-38"
																title="Combo of Nokia BL-5C Battery+Freshner+WARANTY">
																<div class="ic-w300 ic-cntr">
																	<div class="ic-w300 ic-m" id="vv4-38_idiv">
																		<center>
																			<span></span><img
																				src="retrieve.jsp?item_id=<s:property value='item_id'/>" width="150" height="150" />
																		</center>
																	</div>
																	<a id="vv4-38_a" class="ic-cp" href="javascript:;"></a>

																</div>
															</div></td>
													</tr>
													<tr>
														<td id="vv4-38_sp" class="vs_w-spr">&#160;</td>
													</tr>
													<tr>
														<td><div id="pD_vv4-38" class="tg-p"></div></td>
													</tr>
												</table>
											</div>

										</div></td>
									<td id="isclmn" class="isumv1_5-cell"><form name="v4-26"
											id="v4-26" method="post" class="vi-is1-s4"
											action="BuyItNowClicked.action">
											<table class="vi-is1" cellpadding="0" cellspacing="0"
												border="0">
												<tr>
													<td colspan="4"><div>
															<b id="mainContent"><h1 class="vi-is1-titleH1">
																	<s:property value="item_name" />
																</h1> </b>
															<h2 class="vi-is1-titleH2">100% Guaranted Lowest
																eBAY Price+FREE GIFT+Prompt Dlvry</h2>
															<div class="vi-is1-pt5"></div>
														</div></td>
												</tr>
												<tr>
													<td colspan="4" height="10"></td>
												</tr>
												<tr>
													<th class="vi-is1-lbl">Item condition:</th>
													<td colspan="3" class="vi-is1-clr"><span
														class="vi-is1-condText"><s:property
																value="item_condition"></s:property>
													</span></td>
												</tr>
												<tr>
													<td colspan="4" height="10"></td>
												</tr>
												<tr>
													<th class="vi-is1-lbl">Time left:</th>
													<td colspan="3" class="vi-is1-clr"><span
														class="vi-is1-dt"><span class="vi-is1-tml"><s:property
																	value="item_endtime"></s:property>
														</span> </span> </span><span class="vi-is1-s7"><span class="vi-is1-misc"></span>
													</span></td>
												</tr>
												<tr>
													<td colspan="4" height="10"></td>
												</tr>
												<tr>
													<th class="vi-is1-lbl">Quantity:</th>
													<td colspan="3" class="vi-is1-clr">
													<input type="number" name="quantity" id="quantity" min="1" max="<s:property value="item_quantity"/>"/ required="true">(<s:property value="item_quantity"/> available)
													<input type="hidden" name="item_id" value="<s:property value="item_id"/>"/>
													<input type="hidden" id="maxq" value="<s:property value="item_quantity"/>"/>
													
													</td>
												</tr>
												<tr>
													<td colspan="4" height="10"></td>
												</tr>
												<tr>
													<td colspan="4" height="10" class="vi-is1-solid"></td>
												</tr>
												<tr>
													
													
													<td colspan="2" class="vi-is1-solid vi-is1-tblb"></td>
												</tr>
												<tr>
													<td colspan="4" height="10" class="vi-is1-solid"></td>
												</tr>
												<tr>
													<th class="vi-is1-lblp vi-is1-solidBg"><label
														for="v4-30">Price:</label></th>
													
														<td class="vi-is1-solid vi-is1-tbll"><table
																cellpadding="0" cellspacing="0" border="0"
																class="vi-is1-prcp">
																<tr>
																	<td class="vi-is1-prcs vi-is1-cur">Rs.</td>
																	<td><div>
																			<s:property value="item_price"/>
																		</div></td>
																</tr>
																<tr></tr>
															</table></td>
														<td colspan="2" class="vi-is1-solid vi-is1-tblb"><div>
																<b id="v4-7" class="bn-w bn-pad psb-S"><i>Place
																		bid</i><span id="spn_v4-7" class="bn-b psb-b psb-S"><input
																		id="but_v4-7" name="" value="BUY IT NOW" title=""
																		type="submit"><b id="txt_v4-7">BUY IT NOW</b> </span>
																		<span id="spn_v4-8" class="bn-b psb-b psb-S"><input
																		id="but_v4-8" name="" value="ADD TO CART" title=""
																		type="button" onclick="check('<s:property value="item_id"/>')"><b id="txt_v4-7">ADD TO CART</b> </span>
																		
																</b><label class="g-hdn" for="v4-31"></label><input
																	type="text" name="hiddenText" style="display: none"
																	id="v4-31">
															</div></td>
													
												</tr>
												<tr>
													<th class="vi-is1-lblp vi-is1-solidBg"></th>
													<td colspan="3" class="vi-is1-solid"><span id="v4-32"
														class="vi-c-fsmt"><s:actionerror /><br> </span></td>
												</tr>
												<tr>
													<td colspan="4" height="10" class="vi-is1-solid"></td>
												</tr>




												<tr>
													<td colspan="4" height="10" class="vi-is1-solid"></td>
												</tr>
												<tr>
													<td colspan="4" height="10"></td>
												</tr>
												<!-- courier box..-->
												<tr>
													<th class="vi-is1-lbl">Shipping:</th>
													<td colspan="3" class="vi-is1-clr"><span
														id="fshippingCost"><span
															class="vi-is1-sh-srvcCost vi-is1-hideElem vi-is1-showElem">Rs.
																<s:property value="item_shipping_charge"/></span> </span><span><span> </span> </span><span
														id="fshippingSvc">Flat Rate Courier - Delivery
															anywhere in India</span><span class="sh-nowrap"><a
															href="javascript:;" id="changeLocLink"
															class="vi-tl vi-is1-shpl vi-c-fsmt vi-is1-hideDisc"><span>See
																	more services</span>&#160;<span class="vi-pla-sI vi-pla-iD"></span>
														</a> </span><input type="hidden" id="chngLocPnlJSId"
														value="Js-chngLoc"><b>&nbsp;</b><span
														class="sh-nowrap"><wbr> <a
															href="javascript:;" id="seeDcnt"
															class="vi-tl vi-is1-shpl vi-c-fsmt vi-is1-hideDisc"><span>See
																	<b class="g-hdn">shipping</b> discounts</span>&#160;<span
																class="vi-pla-sI vi-pla-iD vi-is1-hideDiv"></span> </a> </wbr> </span></td>
												</tr>
												<!-- shipping and courier box ends... -->
												<!-- jst breaks.. -->
												<tr>
													<td><br />
													<br />
													</td>
												</tr>
												<!-- jst breaks.. -->
												<!-- payment box starts... -->
												<tr>
													<td colspan="4"><div id="v4-8">
															<div>
																<div>
																	<div class="buy-rtm-content buy-pp-content">
																		<table>
																			<tr class="textColor">
																				<td valign="top" class="firstTd noBorder"><span
																					class="fontSize"><div class="smartTitle">
																							<table>
																								<tr>
																									<td style="padding: 0px" class="noBorder"><span><img
																											src="http://q.ebaystatic.com/aw/pics/psp_new/imgguaranteeshield1.png"
																											height="35" width="28"> </span></td>
																									<td class="noBorder" style="padding: 0px"><span
																										class="titleSpan divPosition">Make the
																											smart choice:</span></td>
																								</tr>
																							</table>
																						</div>
																						<div class="fontSize">Use PaisaPay, complete
																							your purchase on eBay!</div> </span></td>
																				<td valign="top" class="secondTd noBorder"><span
																					class="display divPosition"><div
																							class="listDiv">
																							<ul class="msgLst">
																								<li class="lstElement">PaisaPay sends your
																									money to the seller after you get the item</li>
																								<li class="lstElement">Most items are
																									shipped within 2 days of payment</li>
																								<li class="lstElement">Replacement or
																									Refund if you are not 100% satisfied*</li>
																							</ul>
																						</div>
																						<div class="knwMore">
																							<a
																								href="http://pages.ebay.in/aboutebay/The_smart_choice.html"
																								target="_blank">Know more</a> | *T&amp;C apply
																						</div> </span></td>
																			</tr>
																		</table>
																	</div>
																</div>
															</div>
															<div class="vi-is1-cls">
																<div id="rtm_html_699" style="height: 25; width: 447"></div>
															</div>
														</div></td>
												</tr>
												<!-- payment box ends... -->
											</table>
										</form>

										<div>
											<div class="vi-is1-s1"></div>
										</div></td>
								</tr>
							</table>
						</div></td>
					<td colspan="1" rowspan="1" id="vi-tTblS" class="vi-tTblS"></td>
					<td colspan="1" rowspan="1" id="vi-tTblC2" class="vi-tTblC2_0"><div>
							<div>
								<div class="cr-w cr-bt c-gy-bdr">
									<div class="cr-cnt">
										<b> Seller's Info: </b><br>
									</div>
									<br> <b>Name: </b>
									<s:property value="item_seller"/>
									
									<br>
								</div>
							</div>
							<div class="spc1"></div>
						</div>
						<div>
							<div class="cr-w cr-bt c-gy-bdr">
								<div class="cr-cnt">
									<div>
										<div>
											<div class="z_b">
												<h3 class="iIt">Other item info</h3>
												<table class="sp1" cellpadding="3" summary="Other item info">
													<tr>
														<td width="1%" align="right" valign="top" class="inf_lab">Item
															number:</td>
														<td valign="top"><s:property value="item_id"></s:property>
														</td>
													</tr>
													<tr>
														<td align="right" valign="top" class="inf_lab">Item
															location:</td>
														<td valign="top">Bangalore,
															India</td>
													</tr>
													<tr>
														<td align="right" valign="top" class="inf_lab">Ships
															to:</td>
														<td valign="top">India</td>
													</tr>
												</table>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div></td>
				</tr>
			</table>
		</div>
		<br>
		<br>
		<br>
		</s:iterator>
		<div><%@ include file="widefooter.jsp"%></div>

</body>
</html>